<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改生产批次')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-erpBatchInfo-edit" th:object="${erpBatchInfo}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">批次号：</label>
                <div class="col-sm-8">
                    <input name="batchNo" disabled th:field="*{batchNo}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">订单号：</label>
                <div class="col-sm-8">
                    <input name="orderNo" disabled th:field="*{orderNo}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">销售员ID：</label>
                <div class="col-sm-8">
                    <input name="salesmanNo" disabled th:field="*{salesmanNo}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">生产型号：</label>
                <div class="col-sm-8">
                    <input name="modelNo" disabled th:field="*{modelNo}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">客户编号：</label>
                <div class="col-sm-8">
                    <input name="customerNo" disabled th:field="*{customerNo}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">批次状态：</label>
                <div class="col-sm-8">
                    <select name="state" class="form-control m-b" th:with="type=${@dict.getType('erp_batch_state')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{state}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">生产优先级：</label>
                <div class="col-sm-8">
                    <select name="batchPriority" class="form-control m-b" th:with="type=${@dict.getType('erp_process_level')}" required>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{batchPriority}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">长：</label>
                <div class="col-sm-8">
                    <input name="length" th:field="*{length}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">宽：</label>
                <div class="col-sm-8">
                    <input name="wide" th:field="*{wide}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">PNL长：</label>
                <div class="col-sm-8">
                    <input name="pnlLength" th:field="*{pnlLength}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">PNL宽：</label>
                <div class="col-sm-8">
                    <input name="pnlWide" th:field="*{pnlWide}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">PCS数：</label>
                <div class="col-sm-8">
                    <input name="pcsNum" th:field="*{pcsNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">连片数量：</label>
                <div class="col-sm-8">
                    <input name="continuousNum" th:field="*{continuousNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">连片数量：</label>
                <div class="col-sm-8">
                    <input name="deliveryNum" th:field="*{deliveryNum}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">投料数量：</label>
                <div class="col-sm-8">
                    <input name="feedNum" th:field="*{feedNum}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">开料日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="cuttingTime" th:value="${#dates.format(erpBatchInfo.cuttingTime, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">当前工序状态：</label>
                <div class="col-sm-8">
                    <select name="processState" class="form-control m-b" th:with="type=${@dict.getType('erp_process_state')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{processState}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">PNL总数：</label>
                <div class="col-sm-8">
                    <input name="pnlTotalNum" th:field="*{pnlTotalNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">欠料：</label>
                <div class="col-sm-8">
                    <input name="qlNum" th:field="*{qlNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">开料：</label>
                <div class="col-sm-8">
                    <input name="klNum" th:field="*{klNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">压合：</label>
                <div class="col-sm-8">
                    <input name="yhNum" th:field="*{yhNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">钻孔：</label>
                <div class="col-sm-8">
                    <input name="zkNum" th:field="*{zkNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">导电胶：</label>
                <div class="col-sm-8">
                    <input name="ddjNum" th:field="*{ddjNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">线路：</label>
                <div class="col-sm-8">
                    <input name="xlNum" th:field="*{xlNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">线检：</label>
                <div class="col-sm-8">
                    <input name="xjNum" th:field="*{xjNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">图电：</label>
                <div class="col-sm-8">
                    <input name="tdNum" th:field="*{tdNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">蚀检：</label>
                <div class="col-sm-8">
                    <input name="sjNum" th:field="*{sjNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">中测：</label>
                <div class="col-sm-8">
                    <input name="zcNum" th:field="*{zcNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">阻焊：</label>
                <div class="col-sm-8">
                    <input name="zhNum" th:field="*{zhNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">阻检：</label>
                <div class="col-sm-8">
                    <input name="zjNum" th:field="*{zjNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">字符文字：</label>
                <div class="col-sm-8">
                    <input name="zfwzNum" th:field="*{zfwzNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">表面：</label>
                <div class="col-sm-8">
                    <input name="bmclNum" th:field="*{bmclNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">二钻：</label>
                <div class="col-sm-8">
                    <input name="ezNum" th:field="*{ezNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">大板飞针：</label>
                <div class="col-sm-8">
                    <input name="dbfzNum" th:field="*{dbfzNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">成型外形：</label>
                <div class="col-sm-8">
                    <input name="cxwxNum" th:field="*{cxwxNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">测试：</label>
                <div class="col-sm-8">
                    <input name="testNum" th:field="*{testNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">FQC：</label>
                <div class="col-sm-8">
                    <input name="fqcNum" th:field="*{fqcNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">已入库：</label>
                <div class="col-sm-8">
                    <input name="yrkNum" th:field="*{yrkNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">已出库：</label>
                <div class="col-sm-8">
                    <input name="yckNum" th:field="*{yckNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">已完结：</label>
                <div class="col-sm-8">
                    <input name="ywjNum" th:field="*{ywjNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">累计入库：</label>
                <div class="col-sm-8">
                    <input name="rkTotal" th:field="*{rkTotal}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单面积：</label>
                <div class="col-sm-8">
                    <input name="orderArea" th:field="*{orderArea}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">生产面积：</label>
                <div class="col-sm-8">
                    <input name="prdArea" th:field="*{prdArea}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">在线PNL：</label>
                <div class="col-sm-8">
                    <input name="linePnl" th:field="*{linePnl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">在线面积：</label>
                <div class="col-sm-8">
                    <input name="lineArea" th:field="*{lineArea}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "erp/erpBatchInfo";
        $("#form-erpBatchInfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-erpBatchInfo-edit').serialize());
            }
        }

        $("input[name='cuttingTime']").datetimepicker({
            format: "yyyy-mm-dd hh:ii:ss",
            todayBtn: true,
            todayHighlight: true,
            keyboardNavigation: true,
            minuteStep: 1,
            autoclose: true
        });
    </script>
</body>
</html>